.SUFFIXES: .ice .sgml

SLICE = Yafridng.ice
SGML = $(SLICE:.ice=.sgml)
TARGET_DIR = reference
TARGET = $(TARGET_DIR)/index.pdf

all: $(TARGET)

$(TARGET): $(SGML) reference.sgml
	db2pdf reference.sgml

$(SGML): $(SLICE)
	slice2docbook -I/usr/share/slice/ $@ $^

clean:
	rm -fr $(TARGET_DIR) $(SGML)
